﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.LinqModel
{
    [Table(Name = "TPerson")]
    public class TPersonInfo
    {
        private string m_BianMa;
        /// <summary> 
        /// 编码 
        /// </summary> 
        [Column(IsPrimaryKey = true, Name = "编码", DbType = "char(5)", Storage = "m_BianMa")]
        public string BianMa
        {
            get { return m_BianMa; }
            set { m_BianMa = value; }
        }

        private string m_FenZhanBianMa;
        /// <summary> 
        /// 分站编码 
        /// </summary> 
        [Column(Name = "分站编码", DbType = "char(3) not null", Storage = "m_FenZhanBianMa", UpdateCheck = UpdateCheck.Never)]
        public string FenZhanBianMa
        {
            get { return m_FenZhanBianMa; }
            set { m_FenZhanBianMa = value; }
        }

        private string m_DanWeiBianMa;
        /// <summary> 
        /// 单位编码 
        /// </summary> 
        [Column(Name = "单位编码", DbType = "varchar(50) not null", Storage = "m_DanWeiBianMa", UpdateCheck = UpdateCheck.Never)]
        public string DanWeiBianMa
        {
            get { return m_DanWeiBianMa; }
            set { m_DanWeiBianMa = value; }
        }

        private string m_TongHuaHaoMa;
        /// <summary> 
        /// 通话号码 
        /// </summary> 
        [Column(Name = "通话号码", DbType = "varchar(50) not null", Storage = "m_TongHuaHaoMa", UpdateCheck = UpdateCheck.Never)]
        public string TongHuaHaoMa
        {
            get { return m_TongHuaHaoMa; }
            set { m_TongHuaHaoMa = value; }
        }

        private string m_DuanXinHaoMa;
        /// <summary> 
        /// 短信号码 
        /// </summary> 
        [Column(Name = "短信号码", DbType = "varchar(50) not null", Storage = "m_DuanXinHaoMa", UpdateCheck = UpdateCheck.Never)]
        public string DuanXinHaoMa
        {
            get { return m_DuanXinHaoMa; }
            set { m_DuanXinHaoMa = value; }
        }

        private int m_LeiXingBianMa;
        /// <summary> 
        /// 类型编码 
        /// </summary> 
        [Column(Name = "类型编码", DbType = "int not null", Storage = "m_LeiXingBianMa", UpdateCheck = UpdateCheck.Never)]
        public int LeiXingBianMa
        {
            get { return m_LeiXingBianMa; }
            set { m_LeiXingBianMa = value; }
        }

        private string m_XingMing;
        /// <summary> 
        /// 姓名 
        /// </summary> 
        [Column(Name = "姓名", DbType = "varchar(100)", Storage = "m_XingMing", UpdateCheck = UpdateCheck.Never)]
        public string XingMing
        {
            get { return m_XingMing; }
            set { m_XingMing = value; }
        }

        private string m_GongHao;
        /// <summary> 
        /// 工号 
        /// </summary> 
        [Column(Name = "工号", DbType = "varchar(10) not null", Storage = "m_GongHao", UpdateCheck = UpdateCheck.Never)]
        public string GongHao
        {
            get { return m_GongHao; }
            set { m_GongHao = value; }
        }

        private string m_KouLing;
        /// <summary> 
        /// 口令 
        /// </summary> 
        [Column(Name = "口令", DbType = "varchar(50) not null", Storage = "m_KouLing", UpdateCheck = UpdateCheck.Never)]
        public string KouLing
        {
            get { return m_KouLing; }
            set { m_KouLing = value; }
        }

        private string m_BangDingCheLiangBianMa;
        /// <summary> 
        /// 绑定车辆编码 
        /// </summary> 
        [Column(Name = "绑定车辆编码", DbType = "char(5)", Storage = "m_BangDingCheLiangBianMa", UpdateCheck = UpdateCheck.Never)]
        public string BangDingCheLiangBianMa
        {
            get { return m_BangDingCheLiangBianMa; }
            set { m_BangDingCheLiangBianMa = value; }
        }

        private DateTime m_ShangCiCaoZuoShiJian;
        /// <summary> 
        /// 上次操作时间 
        /// </summary> 
        [Column(Name = "上次操作时间", DbType = "datetime not null", Storage = "m_ShangCiCaoZuoShiJian", UpdateCheck = UpdateCheck.Never)]
        public DateTime ShangCiCaoZuoShiJian
        {
            get { return m_ShangCiCaoZuoShiJian; }
            set { m_ShangCiCaoZuoShiJian = value; }
        }

        private string m_DengLuTaiHao;
        /// <summary> 
        /// 登录台号 
        /// </summary> 
        [Column(Name = "登录台号", DbType = "char(4)", Storage = "m_DengLuTaiHao", UpdateCheck = UpdateCheck.Never)]
        public string DengLuTaiHao
        {
            get { return m_DengLuTaiHao; }
            set { m_DengLuTaiHao = value; }
        }

        private int m_ShunXuHao;
        /// <summary> 
        /// 顺序号 
        /// </summary> 
        [Column(Name = "顺序号", DbType = "int not null", Storage = "m_ShunXuHao", UpdateCheck = UpdateCheck.Never)]
        public int ShunXuHao
        {
            get { return m_ShunXuHao; }
            set { m_ShunXuHao = value; }
        }

        private bool m_ShiFouYouXiao;
        /// <summary> 
        /// 是否有效 
        /// </summary> 
        [Column(Name = "是否有效", DbType = "bit not null", Storage = "m_ShiFouYouXiao", UpdateCheck = UpdateCheck.Never)]
        public bool ShiFouYouXiao
        {
            get { return m_ShiFouYouXiao; }
            set { m_ShiFouYouXiao = value; }
        }

        public int ZhongXinBianMa { get; set; }

    } 

}
